<%@include file="/WEB-INF/acreditacion/includes.jsp"%>
<%@include file="/WEB-INF/acreditacion/libs/utils.jsp" %> 
<util:session validate="true" name="Session2"/>
<c:set var="styleNew" value="display:normal"></c:set>



<body class="body" onload="setFocus('nombre')">
<script type="text/javascript" >
    function setFocus(objPositCur){ $("#"+objPositCur).focus();}
</script>

<%=f_table_head_modules(80)%>

<div style="color: red" id="datagrid"   align="center">
    <div id="idFormulario" align="center">
    <form  id="formBuscar" action="mainAcceso.html"  name="formBuscar" >
    <table align="center" width="80%" class="myform">
    <tr><th  class="showtitle1" >REPORTE - ADMINISTRACI&Oacute;N DE ACCESOS</th></tr>
    <tr align="center">
    &nbsp;&nbsp;
    <td  style="color:black">
    &nbsp;&nbsp;Nombre Acceso: <input type="text" class="myinput" id="nombre" size="60" name="nombre" onfocus="buscarAutocompleteRezise('nombre','controlAcceso.html?opc=searchauto','detalle,divReport','','385')"  value="">
    <input type="hidden" value="L" name="opc" id="opc">
    <input  type="submit"  class="button2" value="Buscar" >&nbsp;
    </td>
    </tr>

    </table>
    </form>
    </div> 

 
    <c:if  test="${!empty resultadoBAcceso}">
    <div  id="divReporte"  align="center">
    <table width="98%" class="myform" style="margin-top:10px;"  >
		 <th class="showtitle1" >
			 <b><samp >LISTA DE ACCESOS</samp></b>
		 </th>
    </table>
    <table  class="myform" width="98%" id="demoTable"   >
    <thead>
         <tr>
                <th >#</th>
                <th sort="c1">Nombre</th>
                <th sort="c2">P&aacute;gina (URL)</th>
                <th sort="c3">Tipo</th>
                <th sort="c4">Orden</th>
          </tr>
    </thead>
    <tbody>
         
    
    <c:set var="i" value="1" />   
    <c:set var="styleNew" value="display:none"></c:set>        
    <c:forEach items="${resultadoBAcceso}" var="resA">        
        <c:if test="${i%2==1}"> <tr bgcolor="#DAEFFE"></c:if>
        <c:if test="${i%2!=1}"> <tr></c:if>
                    <td><c:out  value="${i}"/></td>
                    <td><c:out  value="${resA.nombre}"/></td>
                    <td><c:out value="${resA.pagina}"/></td>
                    <td><c:out value="${resA.idMenu.nombre}"/></td>
                    <td><c:out value="${resA.orden}"/></td>
            </tr>   
    <c:set var="i" value="${i+1}"/>              
    </c:forEach>    
    
    </tbody>   
    <tfoot>
           <tr>
                <td colspan="5">
                <div class="pagination"></div>
                <div class="paginationTitle">P&aacute;gina</div>
                <div class="selectPerPage"></div>
                <div class="status"></div></td>
            </tr>

    </tfoot>
        <script type="text/javascript">
            $('#demoTable').jTPS( {perPages:[20,40,50,60,'Todos'],
                scrollStep:1,scrollDelay:30,
                perPageText:'',
                perPageShowing: 'Listando'
            } );
        </script>
    </table>
    </div>
    </c:if> 
    <div align="center"  id="urlNew" style="<c:out value="${styleNew}"/>" >
    <input id="prevNuevoForm" class="prevNuevoForm" title="Nuevo" onclick="listar('formAcceso.html')" >
    </div>   
    
</div>
<%=f_table_foot_modules()%>
</body>

